<?php

namespace App\Services\Applet\Shop;

use Exception;

class CategoryService extends BaseShopService
{
    /**
     * 分类列表
     * @throws Exception
     * @throws Exception
     */
    public function list(array $params): array
    {

        // 查询分类列表
        $list = $this->getShopCategoryModel()->list($params, ['id', 'title', 'img_url as imgUrl']);

        return [
            'list' => $list,
        ];
    }
}
